<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变量修饰符</title>
    <script>

        /**
         * let 表示声明一个局部变量
         * const 声明叫局部常量
         */
        for (let i = 0; i < 10; i++) {

            //console.log("内："+i);

        }

       const NAME = "itcast";

        const arr = [2,5,6,9];

        arr[0] = 10;


        const user = {
            id:10086,
            name:"刘德华",
            age:50
        }

        user.id = 102306;


    </script>
</head>
<body>

</body>
</html>